From: Georges Basile Stavracas Neto Date: Thu, 4 Jun 2020 04:37:31 +0000 (-0300) Subject: appDisplay: Add folder dialog to overview group X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~296 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d8e6f654a32b4880029909a65bf4a8ebeb2a46a0;p=gnome-shell.git appDisplay: Add folder dialog to overview group Right now, the app folder dialog isn't really a dialog, since it is actually added to the AppDisplay. Furthermore, having it added in AppDisplay may mess up with its sizing calculations, since AppDisplay has a ClutterBinLayout and the folder dialog has a fairly large minimum size. Add the folder dialog to the overview group. Next commits will adjust various actors to be able to better handle it. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 8931ca4a1..ef36f8b67 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -728,7 +728,7 @@ class AppDisplay extends BaseAppView { } addFolderDialog(dialog) { - this.add_child(dialog); + Main.layoutManager.overviewGroup.add_child(dialog); dialog.connect('open-state-changed', (o, isOpen) => { this._eventBlocker.visible = isOpen; @@ -1759,6 +1759,8 @@ var AppFolderDialog = GObject.registerClass({ if (!this._isOpen) return; + this.get_parent().set_child_above_sibling(this, null); + this._needsZoomAndFade = true; this.show();